package com.zff.rental;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author HCY
 */
public class Main {
    public static void main(String[] args) {
        B b = new B();
        System.out.println(b.getStr());
        System.out.println(b.getStr());
    }

    @Data
    static class A {
        private String str = "a";
    }

    @Data
    @EqualsAndHashCode(callSuper = false)
    static class B extends A {
        private String str = "b";
    }
}
